home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AITextRun.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
4KB
|
163 lines
/**
AITextRun.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 Text Run Object Suite.
**/
#ifndef __AITextRun__
#define __AITextRun__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIArt.h"
#include "AIFixedMath.h"
#include "AIPathStyle.h"
#include "AITextFaceStyle.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAITextRunSuite "AI Text Run Suite"
#define kAITextRunVersion 3
typedef enum {
kUnknownStyle = 0,
kStartStyle,
kCenterStyle,
kLimitStyle,
kJustifiedStyle,
kBlockedStyle
} AILineStyle;
/*******************************************************************************
**
** Types
**
**/
typedef struct {
Fixed size;
Fixed offset;
Fixed leading;
Fixed tracking;
FixedPoint scaling;
Boolean kerning;
} AICharStyle;
typedef struct {
Fixed minimum;
Fixed optimal;
Fixed maximum;
} AIGlueStyle;
typedef struct {
Boolean hyphenateIndividualWords;
Boolean limitConsecutiveHyphenations;
short minimumCharactersBeforeHyphen;
short minimumCharactersAfterHyphen;
short maximumConsecutiveHyphenatedLines;
} AIHyphenStyle;
typedef struct {
Fixed leading;
AIGlueStyle wordGlue;
AIGlueStyle charGlue;
Fixed firstMargin;
Fixed startMargin;
Fixed limitMargin;
AILineStyle alignment;
Boolean hangingPunctuation;
Boolean bindingPunctuation;
AIHyphenStyle hyphenation;
} AIParaStyle;
typedef struct {
Fixed kerning;
} AIKernStyle;
/*******************************************************************************
**
** Suite
**
**/
typedef struct {
MACPASCAL FXErr (*GetFirstTextRun) ( AIArtHandle parent, AIArtHandle *first );
MACPASCAL FXErr (*GetNextTextRun) ( AIArtHandle parent, AIArtHandle child, AIArtHandle *next );
MACPASCAL FXErr (*InsertTextRun) ( AIArtHandle parent, AIArtHandle child, AIArtHandle *clone );
MACPASCAL FXErr (*AppendTextRun) ( AIArtHandle parent, AIArtHandle child, AIArtHandle *clone );
MACPASCAL FXErr (*DeleteTextRun) ( AIArtHandle parent, AIArtHandle child );
MACPASCAL FXErr (*GetTextRunByteCount) ( AIArtHandle run, short *count );
MACPASCAL FXErr (*SetTextRunByteCount) ( AIArtHandle run, short count );
MACPASCAL FXErr (*GetTextRunByteCodes) ( AIArtHandle run, short index, short count, unsigned char *codes );
MACPASCAL FXErr (*SetTextRunByteCodes) ( AIArtHandle run, short index, short count, unsigned char *codes );
MACPASCAL FXErr (*GetTextRunPathStyle) ( AIArtHandle run, AIPathStyle *pathStyle );
MACPASCAL FXErr (*SetTextRunPathStyle) ( AIArtHandle run, AIPathStyle *pathStyle );
MACPASCAL FXErr (*GetTextRunFaceStyle) ( AIArtHandle run, AIFaceStyle *faceStyle );
MACPASCAL FXErr (*SetTextRunFaceStyle) ( AIArtHandle run, AIFaceStyle *faceStyle );
MACPASCAL FXErr (*GetTextRunCharStyle) ( AIArtHandle run, AICharStyle *charStyle );
MACPASCAL FXErr (*SetTextRunCharStyle) ( AIArtHandle run, AICharStyle *charStyle );
MACPASCAL FXErr (*GetTextRunParaStyle) ( AIArtHandle run, AIParaStyle *paraStyle );
MACPASCAL FXErr (*SetTextRunParaStyle) ( AIArtHandle run, AIParaStyle *paraStyle );
MACPASCAL FXErr (*GetTextRunKernStyle) ( AIArtHandle run, AIKernStyle *kernStyle );
MACPASCAL FXErr (*SetTextRunKernStyle) ( AIArtHandle run, AIKernStyle *kernStyle );
} AITextRunSuite;
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif